<div class="main_container">
<?php if(isset($payroll)):?>
Timesheet
<table border="1" cellspacing="0" cellpadding="5">
<tbody>
	<th>User Id</th>
	<th>Time In</th>
	<th>Time Out</th>
	<th>Hours</th>
</tbody>
<?php foreach($timesheet as $ts) {?>
<tr>
	<td><?php echo $ts->user_id?></td>
	<td><?php echo $ts->time_in?></td>
	<td><?php echo $ts->time_out?></td>
	<td><?php echo $ts->diff?></td>
</tr>
<?php }?>
</table>
<?php endif;?>
</div>